package branch_and_price;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;

public class Input {
    // 读取算例数据，并返回一个Data对象
    public static Data Input_data(String path) throws FileNotFoundException {
        Scanner sc = new Scanner(new BufferedReader(new FileReader(path)));
        int n = sc.nextInt();
        double[][] vertex2 = new double[n][2];
        for (int i = 0; i < n; i++) {
            vertex2[i][0] = sc.nextDouble();
            vertex2[i][1] = sc.nextDouble();
        }
        sc.close();
        Data data = new Data(n,vertex2);
        return data;
    }
}